﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SmartProduction.Domain.ProductionOrders
{
    /// <summary>
    /// 工序流程
    /// </summary>
    public class Processflow
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        public int ProcessId { get; set; }
        /// <summary>
        /// 共需编码
        /// </summary>
        public string ProcessNo { get; set; }
        /// <summary>
        /// 工序名称
        /// </summary>
        public string ProcessName { get; set; }
        /// <summary>
        /// 加工顺序
        /// </summary>
        public int ProcessingSequence { get; set; }
        /// <summary>
        /// 工艺流程
        /// </summary>
        public string ProcessFlow { get; set; }
        /// <summary>
        /// 负责人
        /// </summary>
        public string PersonCharge { get; set; }
        /// <summary>
        /// 所在部门
        /// </summary>
        public string Department { get; set; }
        /// <summary>
        /// 计划开始时间
        /// </summary>
        public DateTime PlannedStartTime { get; set; }
        /// <summary>
        /// 计划结束时间
        /// </summary>
        public DateTime PlannedEndTime { get; set; }
        /// <summary>
        /// 计划产量
        /// </summary>
        public string PlannedOutput { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remarks { get; set; }

        /// <summary>
        /// 附件
        /// </summary>
        public string? Attachment { get; set; }
        /// <summary>
        /// 外键工单
        /// </summary>
        public string? WorkOrderNo { get; set; }
    }
}
